home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
Puzzle
/
Cubox.swf
/
scripts
/
DefineButton2_164
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2004-06-30
|
8KB
|
304 lines
on(release){
number = "1";
if(eval("blix" add number) == slider)
{
if(eval("blix" add (number + "3")) == "0" and eval("blix" add (number + "6")) == "0")
{
play();
tellTarget("slider/TILE" add number)
{
gotoAndStop("down1");
play();
}
set("blix" add number,"0");
set("blix" add (number + "6"),slider);
}
}
if(eval("blix" add (number + "3")) == wheel)
{
if(eval("blix" add (number + "6")) == "0")
{
spin = "1";
play();
tellTarget("wheel/TILE" add (number + "3") add "/wheel")
{
play();
}
tellTarget("wheel/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("w" add (number + "6"),eval("w" add (number + "3")));
set("w" add (number + "3"),"0");
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),wheel);
if(eval("w" add (number + "6")) == "5")
{
set("w" add (number + "6"),"1");
}
else
{
set("w" add (number + "6"),eval("w" add (number + "6")) + "1");
}
}
}
if(eval("blix" add (number + "3")) == ghost)
{
if("5" >= eval("blix" add (number + "6")))
{
play();
tellTarget("ghost/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),ghost);
}
}
if(eval("blix" add (number + "3")) == slider)
{
if(eval("blix" add (number + "6")) == "0")
{
play();
tellTarget("slider/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),slider);
}
}
if(eval("blix" add (number + "3")) == bumper)
{
if(eval("blix" add (number + "6")) == "0")
{
play();
tellTarget("bumper/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("bump" add (number + "6"),eval("bump" add (number + "3")) - "1");
set("bump" add (number + "3"),"0");
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),bumper);
}
}
if(eval("blix" add (number + "3")) == purple)
{
if(eval("blix" add (number + "6")) == "0")
{
play();
tellTarget("purple/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),purple);
}
}
if(eval("blix" add (number + "3")) == red)
{
if(eval("blix" add (number + "6")) == "0")
{
play();
tellTarget("red/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),red);
}
}
if(eval("blix" add (number + "3")) == yellow)
{
if(eval("blix" add (number + "6")) == "0")
{
play();
tellTarget("yellow/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),yellow);
}
}
if(eval("blix" add (number + "3")) == blue)
{
if(eval("blix" add (number + "6")) == "0")
{
play();
tellTarget("blue/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),blue);
}
}
if(eval("blix" add (number + "3")) == green)
{
if(eval("blix" add (number + "6")) == "0")
{
play();
tellTarget("green/TILE" add (number + "3"))
{
gotoAndStop("down");
play();
}
set("blix" add (number + "3"),"0");
set("blix" add (number + "6"),green);
}
}
if(eval("blix" add number) == slider)
{
if(eval("blix" add (number + "3")) == "0")
{
play();
tellTarget("slider/TILE" add number)
{
gotoAndStop("down");
play();
}
set("blix" add number,"0");
set("blix" add (number + "3"),slider);
}
}
if(eval("blix" add number) == bumper)
{
if(eval("blix" add (number + "3")) == "0")
{
play();
tellTarget("bumper/TILE" add number)
{
gotoAndStop("down");
play();
}
set("bump" add (number + "3"),eval("bump" add number) - "1");
set("bump" add number,"0");
set("blix" add number,"0");
set("blix" add (number + "3"),bumper);
}
}
if(eval("blix" add number) == green)
{
if(eval("blix" add (number + "3")) == "0")
{
play();
tellTarget("green/TILE" add number)
{
gotoAndStop("down");
play();
}
set("blix" add number,"0");
set("blix" add (number + "3"),green);
}
}
if(eval("blix" add number) == blue)
{
if(eval("blix" add (number + "3")) == "0")
{
play();
tellTarget("blue/TILE" add number)
{
gotoAndStop("down");
play();
}
set("blix" add number,"0");
set("blix" add (number + "3"),blue);
}
}
if(eval("blix" add number) == yellow)
{
if(eval("blix" add (number + "3")) == "0")
{
play();
tellTarget("yellow/TILE" add number)
{
gotoAndStop("down");
play();
}
set("blix" add number,"0");
set("blix" add (number + "3"),yellow);
}
}
if(eval("blix" add number) == red)
{
if(eval("blix" add (number + "3")) == "0")
{
play();
tellTarget("red/TILE" add number)
{
gotoAndStop("down");
play();
}
set("blix" add number,"0");
set("blix" add (number + "3"),red);
}
}
if(eval("blix" add number) == purple)
{
if(eval("blix" add (number + "3")) == "0")
{
play();
tellTarget("purple/TILE" add number)
{
gotoAndStop("down");
play();
}
set("blix" add number,"0");
set("blix" add (number + "3"),purple);
}
}
if(eval("blix" add number) == wheel)
{
if(eval("blix" add (number + "3")) == "0")
{
spin = "1";
play();
tellTarget("wheel/TILE" add number add "/wheel")
{
play();
}
tellTarget("wheel/TILE" add number)
{
gotoAndStop("down");
play();
}
set("w" add (number + "3"),eval("w" add number));
set("w" add number,"0");
set("blix" add number,"0");
set("blix" add (number + "3"),wheel);
if(eval("w" add (number + "3")) == "5")
{
set("w" add (number + "3"),"1");
}
else
{
set("w" add (number + "3"),eval("w" add (number + "3")) + "1");
}
}
}
if(eval("blix" add number) == ghost)
{
if("5" >= eval("blix" add (number + "3")))
{
play();
tellTarget("ghost/TILE" add number)
{
gotoAndStop("down");
play();
}
set("blix" add number,"0");
set("blix" add (number + "3"),ghost);
}
}
}